﻿// 项目：	Guan.CMS.CommandProcessor - Guan.CMS
// 文件名：	ICommandBus.cs
// 
// 修改时间：2013-03-06 19:27
// 修改人：	Cooclsee

using System.Collections.Generic;
using Guan.CMS.CommandProcessor.Command;
using Guan.CMS.Core.Common;

namespace Guan.CMS.CommandProcessor.Dispatcher
{
    public interface ICommandBus
    {
        ICommandResult Submit<TCommand>(TCommand command) where TCommand : ICommand;
        IEnumerable<ValidationResult> Validate<TCommand>(TCommand command) where TCommand : ICommand;
    }
}